<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页全面布局</title>
    <style>
        .top,.nav,.main,.footer {
            width: 1000px;
            margin: 4px auto;
            border: 1px solid black;
            background-color: rgb(174, 150, 211);
            text-align: center;
        }
         .top,.footer {
            height: 200px;
            line-height: 200px;
         }
         .nav {
            height: 100px;
            line-height: 100px;
         }
         .main,.left,.right {
            height: 500px;
            line-height: 500px;
         }
         .left {
            float: left;
            width: 200px;
            margin-right:5px;
            border-right: 1px solid black;
         }
         .right {
            float: left;
            width: 780px;
         }
        </style>
</head>
<body>
    <div class="top">顶部</div>
    <div class="nav">导航</div>
    <div class="main">
       <div class="left">左侧内容</div>
       <div class="right">右侧内容</div>
    </div>
    <div class="footer">底部</div>
</body>
</html>